#
# Makefile for the kernel gec6818_led device drivers.
#
# key_drv.ko
obj-m += light_drv.o

#设置内核源码的路径和编译工具链接路径
KERNELDIR:=/home/gui/6818GEC/kernel
CROSS_COMPILE:=/home/gui/6818GEC/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-

PWD:=$(shell pwd)

# make ARCH=arm CROSS_COMPILE=/home/gec/6818GEC/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-
# -C /home/gec/6818GEC/kernel M=/mnt/hgfs/GZ1853/linux_drvier/4module/code/led_drv/ modules
default:
	$(MAKE) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNELDIR) M=$(PWD) modules

clean:
	rm -rf *.o *.order .*.cmd *.ko *.mod.c *.symvers *.tmp_versions
